package com.example.administrator.college02.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;

import com.example.administrator.college02.BaseFragment;
import com.example.administrator.college02.R;
import com.example.administrator.college02.helper.AnalyzeJson;
import com.example.administrator.college02.utils.CommonNet;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2016/7/15.
 */
public class FragmentSchoolHistory extends BaseFragment {

    @BindView(R.id.school_history)
    WebView webView;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_school_history,container,false);
        unbinder = ButterKnife.bind(this,view);
        AnalyzeJson.initWebView(webView,CommonNet.HISTORY_DETAILS);
        return view;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }
}
